﻿<!doctype html>
 <html>
   <head>
   	<title>timeline 演示</title>
     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    	<!--
		<script src="timeline_2.3.0/timeline_ajax/simile-ajax-api.js?bundle=true" type="text/javascript"></script>
		<script src="timeline_2.3.0/timeline_js/timeline-api.js?bundle=true" type="text/javascript"></script>
		-->
		<script src="http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js?bundle=true" type="text/javascript"></script>
		
		
   </head>
   <body>
   	<p>
   		
   		<label>过滤：<input id="filterEl"/></label>&nbsp;&nbsp;&nbsp;
   		<label>高亮：<input id="highlightEl"/></label>
   		</p>
   	<div id="my-timeline" style="height:500px;"></div>
<script src="timeline.js"></script>
<script>
var input = [{
    "current_date": "2010-06-25",
    "plan_start_date": "",
    "plan_finish_date": "",
    "actual_start_date": "",
    "actual_finish_date": "",
    "task_total": 0,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=3c578041-4e78-483f-beb0-0055bdecbcde",
    "pm_displayname": "\u4E91\u70C8",
    "master_ued": "\u8C22\u900A",
    "project_status_name": "\u672A\u5B8C\u6210",
    "actual_remain_work_hours": 0.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "1128UED\u65E5\u5E38",
    "plan_work_hours": 0.0,
    "intensity": 6.0,
    "business_line": "\u641C\u7D22"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-28",
    "plan_finish_date": "2010-02-06",
    "actual_start_date": "2010-01-28",
    "actual_finish_date": "",
    "task_total": 3,
    "completed_task_amount": 2,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=f2b5ff64-fa5b-472b-8bb1-144af477528e",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "\u4FEE\u6B66",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F",
    "actual_remain_work_hours": 1.0,
    "buffer_hours": 16.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "0128-1",
    "plan_work_hours": 22.0,
    "intensity": 6.0,
    "business_line": "\u5E73\u53F0\u67B6\u6784"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-28",
    "plan_finish_date": "2010-02-06",
    "actual_start_date": "2010-01-28",
    "actual_finish_date": "",
    "task_total": 2,
    "completed_task_amount": 1,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=b0a95eaf-d889-412b-96a4-1469763c8288",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F",
    "actual_remain_work_hours": 9.0,
    "buffer_hours": 10.0,
    "plan_remain_work_hours": 9.0,
    "project_name": "0128-3",
    "plan_work_hours": 9.0,
    "intensity": 6.0,
    "business_line": "\u6570\u5B57\u5316\u4EA7\u54C1"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-14",
    "plan_finish_date": "2010-01-14",
    "actual_start_date": "2009-12-31",
    "actual_finish_date": "2009-12-31",
    "task_total": 2,
    "completed_task_amount": 2,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=499864a7-ac9e-48aa-9d73-158e3bce7dc3",
    "pm_displayname": "\u4E91\u70C8",
    "master_ued": "\u4E91\u70C8",
    "project_status_name": "\u5DF2\u5B8C\u6210",
    "actual_remain_work_hours": 0.0,
    "buffer_hours": 10.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "haha",
    "plan_work_hours": 23.2,
    "intensity": 6.0,
    "business_line": "\u673A\u5F69\u7968"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "",
    "plan_finish_date": "",
    "actual_start_date": "",
    "actual_finish_date": "",
    "task_total": 0,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=d7407ca9-d974-4192-b5e0-232c87fdd0ff",
    "pm_displayname": "\u548F\u6C99",
    "master_ued": "\u4E91\u70C8",
    "project_status_name": "\u672A\u5B8C\u6210",
    "actual_remain_work_hours": 0.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "\u745E\u680B\u6D4B\u8BD5\u65E5\u5E380506",
    "plan_work_hours": 0.0,
    "intensity": 6.0,
    "business_line": "\u5BA2\u670D\u8425\u9500"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "",
    "plan_finish_date": "",
    "actual_start_date": "",
    "actual_finish_date": "",
    "task_total": 1,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=98aa966e-e836-40d9-962c-39739b7b4dec",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u672A\u5B8C\u6210",
    "actual_remain_work_hours": 6.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 6.0,
    "project_name": "ceshiddd",
    "plan_work_hours": 6.0,
    "intensity": 6.0,
    "business_line": "BC\u7EBF"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-28",
    "plan_finish_date": "2010-02-06",
    "actual_start_date": "2010-01-28",
    "actual_finish_date": "2010-02-01",
    "task_total": 3,
    "completed_task_amount": 3,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=7f25728a-ca3a-42ba-a80f-3a0dbd9d59ee",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u5DF2\u5B8C\u6210",
    "actual_remain_work_hours": 0.0,
    "buffer_hours": 16.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "0128-2",
    "plan_work_hours": 17.0,
    "intensity": 6.0,
    "business_line": "\u8BD5\u8863\u95F4"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-18",
    "plan_finish_date": "2010-01-27",
    "actual_start_date": "2010-01-27",
    "actual_finish_date": "2010-01-27",
    "task_total": 2,
    "completed_task_amount": 2,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=9c846b06-2064-4695-9590-55e60f38aeea",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u5DF2\u5B8C\u6210;\u62A5\u8B66\u4E2D",
    "actual_remain_work_hours": 7.0,
    "buffer_hours": 3.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "0127-1",
    "plan_work_hours": 14.0,
    "intensity": 4.0,
    "business_line": "\u673A\u5F69\u7968"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-18",
    "plan_finish_date": "",
    "actual_start_date": "2010-01-25",
    "actual_finish_date": "",
    "task_total": 6,
    "completed_task_amount": 1,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=e63c1aad-b154-4e8f-971e-60d390262bfa",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "\u9752\u51FD",
    "project_status_name": "\u672A\u5B8C\u6210",
    "actual_remain_work_hours": 43.0,
    "buffer_hours": 10.5,
    "plan_remain_work_hours": 48.5,
    "project_name": "0122-31985",
    "plan_work_hours": 48.5,
    "intensity": 5.5,
    "business_line": "\u5546\u6237\u5E73\u53F0"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-27",
    "plan_finish_date": "2010-02-05",
    "actual_start_date": "2010-01-27",
    "actual_finish_date": "",
    "task_total": 4,
    "completed_task_amount": 1,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=40fd26d4-0b29-4284-afe2-8146ede6a075",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "\u957F\u6CF0",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F;\u62A5\u8B66\u4E2D",
    "actual_remain_work_hours": 20.0,
    "buffer_hours": 10.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "0127-2",
    "plan_work_hours": 20.0,
    "intensity": 6.0,
    "business_line": "BC\u7EBF"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "",
    "plan_finish_date": "",
    "actual_start_date": "",
    "actual_finish_date": "",
    "task_total": 0,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=90b03b89-8790-442c-9e2b-8a6b4039bc4d",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u672A\u5B8C\u6210",
    "actual_remain_work_hours": 0.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "\u54C1\u724C",
    "plan_work_hours": 0.0,
    "intensity": 6.0,
    "business_line": "BC\u7EBF"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-19",
    "plan_finish_date": "2010-01-26",
    "actual_start_date": "2010-01-27",
    "actual_finish_date": "2010-01-26",
    "task_total": 2,
    "completed_task_amount": 1,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=dcf5469a-f1a9-4024-9f46-8b8ac855aeb9",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "\u4FEE\u6B66",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F",
    "actual_remain_work_hours": 10.0,
    "buffer_hours": 1.0,
    "plan_remain_work_hours": 60.0,
    "project_name": "0121-3",
    "plan_work_hours": 60.0,
    "intensity": 6.0,
    "business_line": "BC\u7EBF"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-25",
    "plan_finish_date": "2010-02-05",
    "actual_start_date": "2010-01-28",
    "actual_finish_date": "",
    "task_total": 4,
    "completed_task_amount": 1,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=318767c7-9792-4d21-9814-aaf4ddc554e9",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F;\u62A5\u8B66\u4E2D",
    "actual_remain_work_hours": 11.0,
    "buffer_hours": 6.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "0127-3",
    "plan_work_hours": 21.0,
    "intensity": 6.0,
    "business_line": "BC\u7EBF"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-27",
    "plan_finish_date": "2010-02-06",
    "actual_start_date": "",
    "actual_finish_date": "",
    "task_total": 13,
    "completed_task_amount": 2,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=c4e12885-2107-411a-84af-af8da477ef76",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "\u6B66\u901A",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F",
    "actual_remain_work_hours": 93.0,
    "buffer_hours": 30.0,
    "plan_remain_work_hours": 93.0,
    "project_name": "0122-2",
    "plan_work_hours": 93.0,
    "intensity": 7.0,
    "business_line": "\u6211\u7684\u6DD8\u5B9D\u3001\u6253\u542C\u3001\u6DD8\u5FC3\u5F97test"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-28",
    "plan_finish_date": "2010-02-06",
    "actual_start_date": "2010-01-28",
    "actual_finish_date": "",
    "task_total": 2,
    "completed_task_amount": 1,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=195d6e62-6fda-4d9f-b51e-c2b73f8f2ff2",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F;\u62A5\u8B66\u4E2D",
    "actual_remain_work_hours": 14.0,
    "buffer_hours": 10.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "0128-4",
    "plan_work_hours": 14.0,
    "intensity": 6.0,
    "business_line": "TMS"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-25",
    "plan_finish_date": "2010-01-29",
    "actual_start_date": "2010-01-25",
    "actual_finish_date": "",
    "task_total": 4,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=ca8e9c3a-0e98-4b76-9757-d07177060d3a",
    "pm_displayname": "\u4E91\u70C8",
    "master_ued": "\u6B66\u901A",
    "project_status_name": "\u672A\u5B8C\u6210;\u5DF2\u5EF6\u671F;\u62A5\u8B66\u4E2D",
    "actual_remain_work_hours": 30.0,
    "buffer_hours": 10.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "hello",
    "plan_work_hours": 78.0,
    "intensity": 6.0,
    "business_line": "\u6211\u7684\u6DD8\u5B9D\u3001\u6253\u542C\u3001\u6DD8\u5FC3\u5F97test"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-25",
    "plan_finish_date": "",
    "actual_start_date": "",
    "actual_finish_date": "",
    "task_total": 1,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=ba2b8f93-5ee6-46a8-853e-dc6d6190fc36",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "\u4FEE\u6B66",
    "project_status_name": "\u672A\u5B8C\u6210",
    "actual_remain_work_hours": 6.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 6.0,
    "project_name": "0125-3",
    "plan_work_hours": 6.0,
    "intensity": 6.0,
    "business_line": "BC\u7EBF"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-26",
    "plan_finish_date": "",
    "actual_start_date": "2010-01-26",
    "actual_finish_date": "2010-01-27",
    "task_total": 0,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=a69dd535-33a4-4c16-a57d-dcd966f0974d",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "",
    "project_status_name": "\u672A\u5B8C\u6210;\u62A5\u8B66\u4E2D",
    "actual_remain_work_hours": 18.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "0126",
    "plan_work_hours": 0.0,
    "intensity": 6.0,
    "business_line": "\u5546\u6237\u5E73\u53F0"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-26",
    "plan_finish_date": "",
    "actual_start_date": "2010-01-25",
    "actual_finish_date": "2010-01-25",
    "task_total": 2,
    "completed_task_amount": 0,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=1647d158-ba4a-44b3-bccf-ec43d6fbca20",
    "pm_displayname": "\u6B66\u901A",
    "master_ued": "\u957F\u6CF0",
    "project_status_name": "\u672A\u5B8C\u6210",
    "actual_remain_work_hours": 15.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 15.0,
    "project_name": "0125-2",
    "plan_work_hours": 15.0,
    "intensity": 6.0,
    "business_line": "\u6211\u7684\u6DD8\u5B9D\u3001\u6253\u542C\u3001\u6DD8\u5FC3\u5F97test"
},
{
    "current_date": "2010-06-25",
    "plan_start_date": "2010-01-22",
    "plan_finish_date": "",
    "actual_start_date": "2010-01-25",
    "actual_finish_date": "",
    "task_total": 33,
    "completed_task_amount": 2,
    "project_detail_url": "http://10.13.3.60:8889/UEDProjectManage/ProjectView.aspx?ProjectId=78ad81b2-8276-440f-93f3-f112366c2b55",
    "pm_displayname": "\u4E91\u70C8",
    "master_ued": "\u5C0F\u864E",
    "project_status_name": "\u672A\u5B8C\u6210;\u62A5\u8B66\u4E2D",
    "actual_remain_work_hours": 186.0,
    "buffer_hours": 0.0,
    "plan_remain_work_hours": 0.0,
    "project_name": "\u65FA\u94FA\u56DB\u671F - \u79EF\u6728\u53F0",
    "plan_work_hours": 198.0,
    "intensity": 6.0,
    "business_line": "\u5546\u6237\u5E73\u53F0"
}];
var timeline=createTimeline({
    jsonData: input,
    container: "my-timeline",
    filterEl: "filterEl",
    highlightEl: "highlightEl"
});

//timeline.update(input.slice(0,2));


</script>
  </body>
 </html>